home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / dev / lang / pcq12b.lzh / Include / Utils / TimerUtils.i < prev   
Text File  |  1990-08-27  |  919b  |  32 lines

  1. {
  2.     TimerUtils.i
  3.  
  4.     This file declares CreateTimer, WaitTimer, and DeleteTimer.
  5.     They allow you to use the timer.device with relatively little
  6.     overhead.  Note that, unlike the examples from the ROM Kernel
  7.     Manual, these routines use the VBlank unit.  Therefore they
  8.     require much less overhead, but you should not use these routines
  9.     for times of less than half a second.
  10.     The source for these routines is in Runtime/Extras.
  11. }
  12.  
  13. {$I "Include:Exec/Ports.i"}
  14. {$I "Include:Devices/Timer.i"}
  15.  
  16. Function CreateTimer : TimeRequestPtr;
  17.     External;
  18.  
  19. Function SetTimer(WhichTimer : TimeRequestPtr;
  20.             Seconds, Microseconds : Integer) : MsgPortPtr;
  21.     External;
  22.  
  23. Procedure WaitTimer(WhichTimer : TimeRequestPtr;
  24.             Seconds, Microseconds : Integer);
  25.     External;
  26.  
  27. Procedure GetSysTime(WhichTimer : TimeRequestPtr; VAR TV : TimeVal);
  28.     External;
  29.  
  30. Procedure DeleteTimer(WhichTimer : TimeRequestPtr);
  31.     External;
  32.